home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group94b.txt
/
000014_icon-group-sender _Tue Aug 23 16:46:59 1994.msg
< prev
next >
Wrap
Internet Message Format
|
1995-02-09
|
1KB
Received: by cheltenham.cs.arizona.edu; Tue, 23 Aug 1994 16:47:14 MST
Date: Tue, 23 Aug 1994 16:46:59 MST
From: "Ralph Griswold" <ralph>
Message-Id: <199408232346.AA12612@cheltenham.cs.arizona.edu>
To: NOR0048@applelink.apple.com
Subject: Re: ProIcon 2.0 and LF chars
Cc: icon-group
Errors-To: icon-group-errors@cs.arizona.edu
Icon uses the C I/O library. In the default file mode, there is translation
of input and output files so that internal routines always see
the same thing regardless of platform. This is not ProIcon nor Macintosh
specific. It's more of a problem under MS-DOS, where a line terminator
consists of two characters.
What you want to do is use the second argument to open (see the ProIcon
manual, page 11-58). open(s, "t"), the default mode, does translation.
open(s, "u") does not. The "u" mode is necessary for binary files, but
can be used for text files. The only problem is that there's no way
to read standard input or write standard output in untranslated mode.